<%@attribute name="n" type="java.lang.Integer" required="true" %>
<%@variable name-given="num" variable-class="java.lang.Integer[]" scope="AT_BEGIN" %>
<%!
    public Integer[] fun(int n){
        Integer[] arr = new Integer[n];
        for(int i=0;i<n;i++)
            arr[i]=(int)(Math.random()*2001-1000);
        return arr;
    }
%>
<%
    jspContext.setAttribute("num", fun(n));
%>